package com.alibaba.citrus.cr.mn.order.center.facade.adapter;

import com.alibaba.citrus.cr.mn.order.center.facade.adapter.dataobject.request.SearchScItemQueryRequest;
import com.alibaba.citrus.cr.mn.order.center.facade.adapter.dataobject.response.BaseDataScItemDTO;
import com.epoch.app.bcorder.model.dto.OrganizationSDO;
import com.epoch.app.mnordercenter.model.dto.DictionaryResponse;
import com.epoch.app.mnordercenter.model.dto.Modifiers;

import java.util.List;
import java.util.Map;

/**
 * @author zhangxiaorui
 * @ClassName BaseDataServiceAdapter
 * @description: 基础数据查询
 * @date 2023/05/09 11:12
 * @version: 1.0
 */
public interface BaseDataServiceAdapter {
    /**
     * 查询货品ES-支持降级到DB
     * @param searchScItemRequest
     * @return
     */
    @Deprecated
    List<BaseDataScItemDTO> searchScItemByDBWhenDegraded(SearchScItemQueryRequest searchScItemRequest);

    /**
     * codes查询组织
     * @param codes
     * @return
     */
    Map<String, String> baselineGetOrganizationByCodes2(List<String> codes);

    /**
     * ids查询组织
     * @param ids
     * @return
     */
    Map<String, OrganizationSDO> baselineGetOrganizationByIds(List<String> ids);

    /**
     * 查询字典
     * @param group
     * @return
     */
    List<DictionaryResponse> queryDictionarys(String group);

    /**
     * 查询员工
     * @param ids
     * @return
     */
    Map<String, Modifiers> queryEmployeeMap(List<String> ids);


}
